package vip.ifmm.lehouse.search.service.elasticSearchTemplate;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;
import vip.ifmm.lehouse.common.model.User;

import java.util.List;

/**
 * @author: mackyhuang
 * <p>email: mackyhuang@163.com <p>
 * <p>date: 2019/6/21 </p>
 */
@Component
public interface UserRepository extends ElasticsearchRepository<User, Integer> {

    User findByUserNickname(String userNickname);

    User findByUserEmail(String userEmail);
}
